home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 May: Tool Chest / Developer CD Series May 1996 (Tool Chest) (Apple Computer) (1996).iso / Tool Chest / Developer Utilities / Installer 4.0.3 SDK / DeveloperInterfaces / PIncludes / TargetInfoMgt.p < prev    next >
Encoding:
Text File  |  1994-11-15  |  1.7 KB  |  80 lines  |  [TEXT/MPS ]

  1. {
  2.     File:        TargetInfoMgt.p
  3.  
  4.     Contains:    xxx put contents here xxx
  5.  
  6.     Written by:    Kevin Aitken
  7.  
  8.     Copyright:    © 1993 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.  
  12.          <4>     5/10/94    KBA        Added Mod. Data field to info record.
  13.          <3>     4/17/94    KBA        Added support for new format of the target info and target vers
  14.                                     parameter blocks passed to the extension code resources.
  15.          <2>     11/7/93    KBA        Added field to TargetInfoPB that tells the code resource the
  16.                                     type of data we are concerned about.
  17.          <1>    10/14/93    KBA        first checked in
  18.  
  19. }
  20.  
  21.  
  22.  
  23. UNIT TargetInfoMgt;
  24.  
  25. {****************************************} INTERFACE {****************************************}
  26.  
  27. USES Files;
  28.  
  29. CONST
  30.     kDataTypeIsFile        = -1;
  31.     kDataTypeIsRsrc        = 1;
  32.  
  33. TYPE
  34.     InfoTypes =    (fileInfoPB, rsrcInfoPb);
  35.     TargetInfoPB = RECORD
  36.         fSrcFSSpec            : FSSpec;
  37.         fSrcDataType        : LongInt;
  38.         CASE InfoTypes OF
  39.             fileInfoPB:
  40.                 (
  41.                     fTgtFileName        : Str31;
  42.                     fTgtFinderAttrs        : INTEGER;
  43.                     fTgtDataForkSize    : LongInt;    
  44.                     fTgtRsrcForkSize    : LongInt;    
  45.                     fTgtCreationDate    : LongInt;    
  46.                     fTgtFileType        : ResType;    { Not supported in 4.0.0 }
  47.                     fTgtFileCreator        : ResType;    { Not supported in 4.0.0 }
  48.                     fTgtModDate            : LongInt;    { Not supported in 4.0.0 }
  49.                 );
  50.                 
  51.             rsrcInfoPb:
  52.                 (
  53.                     fSrcRsrcType        : OSType;    
  54.                     fSrcRsrcID            : INTEGER;
  55.                     fTgtRsrcType        : OSType;    
  56.                     fTgtRsrcID            : INTEGER;
  57.                     fTgtRsrcAttrs        : INTEGER;
  58.                     fTgtRsrcSize        : LongInt;    
  59.                 );
  60.         END;
  61.  
  62.     
  63.     TargetInfoPBPtr =    ^TargetInfoPB;
  64.  
  65.  
  66. FUNCTION GetTgtInfoForAtomExtender(    pAccessoriesFileRefNum     : INTEGER;
  67.                                     pAtomExtenderID            : INTEGER;
  68.                                     pTgtInfoPBPtr            : TargetInfoPBPtr ) : OSErr;
  69.  
  70. IMPLEMENTATION
  71.     { Implemented in C in TargetInfoMgt.c }
  72.  
  73. END.        { TargetInfoMgt UNIT }
  74.  
  75.  
  76.  
  77.  
  78.  
  79.  
  80.